<template>
  <footer class="tencent-footer">
    <div class="footer-content">
      <div class="footer-links">
        <div class="link-column" v-for="column in links" :key="column.title">
          <h3>{{ column.title }}</h3>
          <ul>
            <li v-for="link in column.items" :key="link.text">
              <a :href="link.url">{{ link.text }}</a>
            </li>
          </ul>
        </div>
      </div>
      <div class="footer-bottom">
        <div class="copyright">
          <p>Copyright © 2024 - {{ currentYear }} Cecily. All Rights Reserved.</p>
          <p>橘事顺利公司 版权所有</p>
        </div>
        <div class="social-links">
          <a href="#" class="social-icon"><i class="icon-weibo"></i></a>
          <a href="#" class="social-icon"><i class="icon-wechat"></i></a>
          <a href="#" class="social-icon"><i class="icon-qq"></i></a>
        </div>
      </div>
    </div>
  </footer>
</template>

<script setup>
import { ref } from 'vue'

const currentYear = ref(new Date().getFullYear())

const links = [
  {
    title: '关于橘事顺利',
    items: [
      { text: '公司简介', url: '#' },
      { text: '管理团队', url: '#' },
      { text: '企业文化', url: '#' },
      { text: '发展历程', url: '#' }
    ]
  },
  {
    title: '产品与服务',
    items: [
      { text: '电影', url: '#' },
      { text: '电视剧', url: '#' },
      { text: '音乐', url: '#' },
      { text: '其他', url: '#' }
    ]
  },
  {
    title: '投资者关系',
    items: [
      { text: '公司治理', url: '#' },
      { text: '财务信息', url: '#' },
      { text: '新闻发布', url: '#' },
      { text: '股票信息', url: '#' }
    ]
  },
  {
    title: '联系我们',
    items: [
      { text: '联系方式', url: '#' },
      { text: '加入我们', url: '#' },
      { text: '反馈建议', url: '#' },
      { text: '隐私政策', url: '#' }
    ]
  }
]
</script>

<style scoped>
.tencent-footer {
  background-color: #333;
  color: #fff;
  padding: 50px 0 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.link-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #ccc;
}

.link-column ul {
  list-style: none;
  padding: 0;
}

.link-column li {
  margin-bottom: 10px;
}

.link-column a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s;
}

.link-column a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #444;
  padding-top: 20px;
}

.copyright p {
  color: #999;
  font-size: 12px;
  margin: 5px 0;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  color: #999;
  font-size: 20px;
  transition: color 0.3s;
}

.social-icon:hover {
  color: #fff;
}
</style>
